﻿using System;
using System.Data;
using System.Collections.Generic;
using Common;
using Model;
namespace BLL
{
    /// <summary>
    /// 练习记录明细表
    /// </summary>
    public partial class T_DepPower
    {
        private readonly DAL.T_DepPower dal = new DAL.T_DepPower();
        public T_DepPower()
        { }
        /// <summary>
        /// 对部门权限进行设置,已有进行修改，没有进行添加
        /// </summary>
        /// <param name="depname">部门名</param>
        /// <param name="power">对应权限</param>
        /// <returns>受影响行数</returns>
        public int setPower(string depname, string power)
        {
            return dal.setPower(depname, power);
        }

        /// <summary>
        /// 通过部门名字得到对应权限
        /// </summary>
        /// <param name="depname">部门名字</param>
        /// <returns>返回权限编号例：008,007,006,001</returns>
        public string getPowerByDepName(string depname)
        {
            return dal.getPowerByDepName(depname);
        }
    }
}

